<h3 class="box-title ">
              店铺打印机
              <%= link_to("新增打印机", "/restaurants/printers/new" , class:"btn btn-info btn-rounded pull-right") %> 
</h3>
<div class="well">
  注意: 该模块建议由我们客服来操作,不建议用户直接操作
</div>
<% if @printers.length > 0 %>
            <div class="table-responsive">
              <table class="table table-striped" >
                <thead>
                  <tr>
                    <th>名称</th>
                    <th>编号</th>  
                    <th>KEY</th>
                    <th>操作</th>                  
                  </tr>
                </thead>
                <tbody>
                  <% @printers.each do |printer| %>
                  <tr>
                    <td><%= printer.name %></td>
                    <td><%= printer.sn %></td>
                    <td><%= printer.key %></td>
                    <td>
                    <%= link_to "修改信息","/restaurants/printers/#{printer.id}/edit",class:"btn btn-info" %>
                    <%= link_to "删除","/restaurants/printers/#{printer.id}",method: :delete,class:"btn btn-danger",data:{confirm:"确定要删除吗?"} %>
                    </td>
                  </tr>
                  <% end %>
                </tbody>
              </table>
            </div>
<% else %>
  <div class="well">
    <h4>注: 暂无打印机请添加打印机</h4>
  </div>
<% end %>